package com.homedo.odin.solution.model.request.mng;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * Created by liyi on 2018/5/22.
 */
@ApiModel(description = "PC_白名单添加")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class MngUserSafeRequestBean extends BaseBean {

    @ApiModelProperty(value = "所属业务类型", required = true)
    @NotNull(message = "所属业务类型不允许为空")
    private String bizCode;


    @ApiModelProperty(value = "用户名", required = true)
    private String userName;

    @ApiModelProperty(value = "手机号", required = true)
    private String mobile;

    @ApiModelProperty(value = "新增来源", required = true)
    @NotNull(message = "新增来源不允许为空")
    private Integer source;

    @ApiModelProperty(value = "状态", required = true)
    @NotNull(message = "状态不允许为空")
    private String status;

    @ApiModelProperty(value = "不通过原因", required = true)
    @NotNull(message = "不通过原因不允许为空")
    private String reason;

    @ApiModelProperty(value = "创建时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建用户", required = true)
    @NotNull(message = "创建用户不允许为空")
    private Long createdBy;

    @ApiModelProperty(value = "修改人", required = true)
    @NotNull(message = "修改人不允许为空")
    private Long modifiedBy;

    @ApiModelProperty(value = "操作人", required = true)
    @NotNull(message = "操作人不允许为空")
    private String operator;

}
